import logging,email,yagmail

def log():
    logging.basicConfig(
        filename='rizhi.log',level='w+',filemode=logging.DEBUG,
        format='%(filename)s' '%(levelname)s' '%(message)s' '%(asctime)s' '(lineno)',
    )
def youjian():
    mail=yagmail.SMTP(user='2018675435@qq.com',password='nnqakcckuzyqfebd',host='smtp.qq.com')
    send_mai=mail.send(to='2018675435@qq.com',subject='酒仙网测试自动化',contents=['rizhi.log','baogao.hgtml'])

